﻿namespace ApiLib.Common.Attributes.TaskAttributes;

/// <summary>
/// 延时执行
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class ScheduleOnceAttribute : Attribute
{
    /// <summary>
    /// 毫秒延时
    /// </summary>
    public int Delay { get; set; } = 0;
    
    /// <summary>
    /// 
    /// </summary>
    /// <param name="delay">毫秒周期</param>
    public ScheduleOnceAttribute(int delay)
    {
        Delay = delay;
    }
}